package com.asohofrucol.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the col_municipality database table.
 * 
 */
@Entity
@Table(name="col_municipality")
public class ColMunicipality implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="cod_municipality")
	private String codMunicipality;

	@Column(name="nam_municipality")
	private String namMunicipality;

	//bi-directional many-to-one association to ColDepartament
	@ManyToOne
	@JoinColumn(name="cod_departament")
	private ColDepartament colDepartament;

	//bi-directional many-to-one association to ColVillage
	@OneToMany(mappedBy="colMunicipality")
	private List<ColVillage> colVillages;

	public ColMunicipality() {
	}

	public String getCodMunicipality() {
		return this.codMunicipality;
	}

	public void setCodMunicipality(String codMunicipality) {
		this.codMunicipality = codMunicipality;
	}

	public String getNamMunicipality() {
		return this.namMunicipality;
	}

	public void setNamMunicipality(String namMunicipality) {
		this.namMunicipality = namMunicipality;
	}

	public ColDepartament getColDepartament() {
		return this.colDepartament;
	}

	public void setColDepartament(ColDepartament colDepartament) {
		this.colDepartament = colDepartament;
	}

	public List<ColVillage> getColVillages() {
		return this.colVillages;
	}

	public void setColVillages(List<ColVillage> colVillages) {
		this.colVillages = colVillages;
	}

}